import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  mode:"history",
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/more',
      name: 'more',
      component: resolve => require(['@/views/More'], resolve),      
    },   
    {
      path: '/detail/:id',
      name: 'detail',
      component: resolve => require(['@/views/Detail'], resolve),      
    }     
  ]
})
